
function Level.Loaded()

	local p = GetPlayer();
	
	if( GetPreviousMap() == "intro" or
		GetPreviousMap() == "" ) then
	
		Level.PlayerMoved = false;
			
		p:SetPos( 50, 320 );
		p:SetCurrentSprite( 2 );
		p:SetConstantVelocity( 0, 0 );
		
		if( not p:IsFlipped() ) then
			p:Flip();
		end
	
	else
		
		Level.PlayerMoved = true;
		
		p:SetPos( 1500, 320 );
		p:SetCurrentSprite( 2 );
		
		if( p:IsFlipped() ) then
			p:Flip();
		end
		
	end
	
	Engine.BindGameCameraToEntity( p );
	
	Weather.GenerateFullSnow();
	
	if( not Level.PlayerMoved ) then
		timer.Simple( 1000, function() LuaC.TimedUIMessage3( "Use WASD to move around", 10, 280, function() return not Level.PlayerMoved; end ); end );
	end
	
	
	
end

function Level.Think()
	
	if( not Level.PlayerMoved ) then
		
		local p = GetPlayer();
		local pos = p:GetPos();
		
		if( pos.x ~= 50 or
			pos.y ~= 320 ) then
			
			Level.PlayerMoved = true;
			
		end
		
	end
	
end

function Level.PostDraw()
	
	Weather.DoSnow();
	
end